//package com.hisan.freeride.home.adapter;
//
//import android.net.Uri;
//
//import com.facebook.drawee.view.SimpleDraweeView;
//import com.github.library.BaseQuickAdapter;
//import com.github.library.BaseViewHolder;
//
//import com.hisan.freeride.R;
//import com.hisan.freeride.common.utils.CollectionUtils;
//import com.hisan.freeride.home.model.Mall;
//
//
//import java.util.List;
//
///**
// * 商城列表适配器
// * Created by yu on 2017/1/17.
// */
//
//public class MallAdapter extends BaseQuickAdapter<Mall.GoodsBean,BaseViewHolder> {
//
//    public MallAdapter(List<Mall.GoodsBean> data) {
//        super(R.layout.mall_item,data);
//    }
//
//    @Override
//    protected void convert(BaseViewHolder holder, Mall.GoodsBean mall) {
//        SimpleDraweeView simpleDraweeView=holder.getView(R.id.logo);
//        if (!CollectionUtils.isNullOrEmpty(mall.getThumbnail())){
//            Uri uri = Uri.parse(mall.getThumbnail());
//            simpleDraweeView.setImageURI(uri);
//        }else{
//            simpleDraweeView.setImageResource(R.mipmap.avator);
//        }
//        holder.setText(R.id.name, mall.getName());
//        holder.setText(R.id.id, mall.getId()+"");
//        holder.setText(R.id.love_money, mall.getPrice()+"爱心值");
//    }
//
//}
